const mongoose = require("mongoose");

const userInfoModel = new mongoose.Schema({
  phone: {
    type: String,
  },
  account: {
    type: String,
  },
  password: {
    type: String,
  },
  code: {
    type: String,
  },
  codeExpiresAt: {
    type: String,
  },
  status: {
    type: Boolean,
  },
  roleId: {
    type: String,
  },
});

module.exports = mongoose.model("User", userInfoModel);
